package com.business.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.xserver.component.exception.AbstractBussinessException;

@Service
public class UserService {
	private static final Logger logger = LoggerFactory
			.getLogger(UserService.class);

	@Resource
	private AccessTokenService accessTokenService;

	public Boolean login(String name, String password) {
		return null;
	}

	public String getAccessToken(String userId)
			throws AbstractBussinessException {
		String accessToken = accessTokenService.getAccessTokenByUser(userId);
		logger.debug("userId : "+userId+"accessToken:"+accessToken);
		return accessToken;
	}

}
